﻿@using System.Web.Mvc;
@using System.Web.Mvc.Html;
@using Vit.Common.Extensions;
@using Vit.Common.Helpers;
@using Vit.Web.Models;
@using Vit.Web.Helpers;
@helper Render(IEnumerable<PageWidget> widgets, System.Web.Mvc.WebViewPage view, PageMode pageMode, string sectionName)
    {
        foreach (var widget in widgets.Where(o => o.SectionName.ToLower() == sectionName))
        {
    @widget.RenderContents(view, pageMode)
        }
}
@helper Render(IEnumerable<PageWidget> widgets, System.Web.Mvc.WebViewPage view, PageMode pageMode, string[] excludeSectionNames)
    {
        foreach (var widget in widgets.Where(o => !excludeSectionNames.Contains(o.SectionName.ToLower())))
        {
    @widget.RenderContents(view, pageMode)
        }
}